package com.admin.core.entity;

import com.admin.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author sq-lan
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysDict extends BaseEntity implements Serializable {

    @NotNull(groups = Update.class)
    private Integer id;

    @NotBlank
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "描述")
    private String description;
}
